#ifndef CONFIGSTATION_H
#define CONFIGSTATION_H

#include <QDialog>
#include <QIntValidator>
#include <QDoubleValidator>
#include <QtSql>
#include <QTableView>
#include "stationsettings.h"
#include "overlaystation.h"

namespace Ui {
    class configStation;
}

class configStation : public QDialog
{
    Q_OBJECT

public:
    explicit configStation(QWidget *parent = 0);
    ~configStation();
    QSqlDatabase settingsDatabase;

    QString symbol;

private:
    Ui::configStation *ui;

    stationsettings   *selectStations;
    overlaystation    *selectOverlay;


    void FillInValues();
    void CreateNewTable();

private slots:
    void DecimalPositionSelected();
    void DMSPositionSelected();
    void ViewSettingsDatabase();
    void UpdateSettingsDatabase();
    void updateSymbol(char);
    void mySqlWarning(int);
};

#endif // CONFIGSTATION_H
